Stock Journal Holds by Journal ID
Frequency:
Stock journal holds by journal ID data request to be sent on demand.
Expected data:
Returns stock hold code changes (operational and non-operational) in the warehouse system, starting from a given journal ID.
Technical:
GET https://{url}/v1/journal/stock/holds/id/{lastJournalId}
Retrieve stock journal hold entries starting from a given journal ID.
Response Body
The response contains a data array of hold journal entry objects.
Top-level response fields:
| Name | Type | Required | Description |
|---|---|---|---|
| success | boolean | Yes | Whether the operation succeeded |
| message | string | No | Error message, if applicable |
| errors | string[] | No | Additional error messages, if present |
| data | array | Yes | Array of hold journal entry objects |
Hold journal entry object (inside data array):
| Name | Type | Required | Description |
|---|---|---|---|
| journal_id | integer | Yes | Journal entry unique identifier |
| journal_date | string | Yes | Journal entry date and time (in format '2021-02-10T15:57:57') |
| hold_code_id_from | integer | Yes | Source hold code identifier |
| hold_code_from | string | Yes | Source hold code description |
| hold_code_id_to | integer | Yes | Target hold code identifier |
| hold_code_to | string | Yes | Target hold code description |
| article_id | string | Yes | Article unique identifier in ERP |
| quantity | number | Yes | Quantity affected by the hold change |
| purchase_order_id | string | Yes | Related PO unique identifier in ERP |
| purchase_order_line_number | integer | Yes | Related PO detail line number |
| inventory_reason_id | integer | No | Inventory reason identifier |
| excise | object | Conditional | Excise stamp data object (contains serial, range_from, range_to), if applicable |
Response
200: OK — Success
{
"success": true,
"message": null,
"errors": null,
"data": [
{
"journal_id": 221,
"journal_date": "2021-02-10T15:57:57",
"hold_code_id_from": 0,
"hold_code_from": "Not on hold",
"hold_code_id_to": 2,
"hold_code_to": "Without excise stamp",
"article_id": "00001",
"quantity": 15.000,
"purchase_order_id": "3000437294",
"purchase_order_line_number": 10000,
"inventory_reason_id": null,
"excise": null
},
{
"journal_id": 227,
"journal_date": "2021-02-10T16:02:23",
"hold_code_id_from": 2,
"hold_code_from": "Without excise stamp",
"hold_code_id_to": 0,
"hold_code_to": "Not on hold",
"article_id": "00001",
"quantity": 15.000,
"purchase_order_id": "3000437294",
"purchase_order_line_number": 10000,
"inventory_reason_id": null,
"excise": {
"serial": "UE",
"range_from": 10000,
"range_to": 20000
}
}
]
}
400: Bad Request — Error
{
"success": false,
"message": "Stock journal holds request failed"
}